home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13117 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: acsu.buffalo.edu!chan
  2. From: chan@acsu.buffalo.edu (lipchen alex chan)
  3. Newsgroups: comp.lang.c
  4. Subject: Parallel processing code
  5. Date: 4 Apr 1996 18:36:57 GMT
  6. Organization: State University of New York at Buffalo
  7. Message-ID: <4k14s9$c7a@azure.acsu.buffalo.edu>
  8. Reply-To: chan@acsu.buffalo.edu
  9. NNTP-Posting-Host: mordred.eng.buffalo.edu
  10.  
  11.  
  12. Hi,
  13.  
  14. I have access to a SparcServer 2000 with 12 processors.
  15. I wish to change my program so that it can use more than
  16. one processor at one time in order to speed up the execution
  17. time. Suppose the major segment of execution time resides
  18. in the code below:
  19.  
  20.   for (i=0; i<10; i++){
  21.     for (j=0; j<8; j++){
  22.  
  23.       a lot of operations.....
  24.  
  25.     }
  26.   }
  27.  
  28. Is it possible to make the j loop goes to 8 processors simultaneously 
  29. for each i value, instead of sequentially to a single processor?
  30. Is there any book or reference material that talks about the C
  31. implementation of parallel processing in multi-processors system?
  32.  
  33. Thanks for helps and pointers.
  34.  
  35. Alex
  36. -- 
  37.   +----------------------------------------------------------------+
  38.   | Name     :   Lipchen Alex Chan                                 |
  39.   | E-mail   :   chan@eng.buffalo.edu or chan@acsu.buffalo.edu     |
  40.   +----------------------------------------------------------------+
  41.